/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DigitShopAdminTerminalForm.java
 *
 * Created on Apr 23, 2011, 6:48:59 PM
 */

package digitshopadminapp;
import org.jdesktop.application.Action;

/**
 *
 * @author tsmyth
 */
public class DigitShopAdminTerminalForm extends javax.swing.JDialog {

    /** Creates new form DigitShopAdminTerminalForm */
    public DigitShopAdminTerminalForm(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        //getRootPane().setDefaultButton(closeButton);
    }

    public DigitShopAdminTerminalForm(){
        
    }

    @Action public void closeTerminalForm() {
        dispose();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel_ItemForm = new javax.swing.JLabel();
        jButton_AddTerminal = new javax.swing.JButton();
        jButton_SaveTerminal = new javax.swing.JButton();
        jLabel_TerminalID = new javax.swing.JLabel();
        jLabel_StoreID = new javax.swing.JLabel();
        jTextField_terminalID = new javax.swing.JTextField();
        jTextField_terminalStoreID = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(digitshopadminapp.DigitShopAdminApp.class).getContext().getResourceMap(DigitShopAdminTerminalForm.class);
        jLabel_ItemForm.setFont(resourceMap.getFont("jLabel_ItemForm.font")); // NOI18N
        jLabel_ItemForm.setText(resourceMap.getString("jLabel_ItemForm.text")); // NOI18N
        jLabel_ItemForm.setName("jLabel_ItemForm"); // NOI18N

        jButton_AddTerminal.setText(resourceMap.getString("jButton_AddTerminal.text")); // NOI18N
        jButton_AddTerminal.setName("jButton_AddTerminal"); // NOI18N
        jButton_AddTerminal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_AddTerminalActionPerformed(evt);
            }
        });

        jButton_SaveTerminal.setText(resourceMap.getString("jButton_SaveTerminal.text")); // NOI18N
        jButton_SaveTerminal.setName("jButton_SaveTerminal"); // NOI18N

        jLabel_TerminalID.setText(resourceMap.getString("jLabel_TerminalID.text")); // NOI18N
        jLabel_TerminalID.setName("jLabel_TerminalID"); // NOI18N

        jLabel_StoreID.setText(resourceMap.getString("jLabel_StoreID.text")); // NOI18N
        jLabel_StoreID.setName("jLabel_StoreID"); // NOI18N

        jTextField_terminalID.setText(resourceMap.getString("jTextField_terminalID.text")); // NOI18N
        jTextField_terminalID.setName("jTextField_terminalID"); // NOI18N

        jTextField_terminalStoreID.setText(resourceMap.getString("jTextField_terminalStoreID.text")); // NOI18N
        jTextField_terminalStoreID.setName("jTextField_terminalStoreID"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel_ItemForm)
                    .addComponent(jLabel_StoreID)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jButton_AddTerminal)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addComponent(jLabel_TerminalID)
                                .addGap(49, 49, 49)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTextField_terminalStoreID, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)
                                    .addComponent(jTextField_terminalID, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton_SaveTerminal)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel_ItemForm)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_TerminalID)
                    .addComponent(jTextField_terminalID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_StoreID)
                    .addComponent(jTextField_terminalStoreID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton_AddTerminal)
                    .addComponent(jButton_SaveTerminal))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton_AddTerminalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_AddTerminalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton_AddTerminalActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                DigitShopAdminTerminalForm dialog = new DigitShopAdminTerminalForm(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_AddTerminal;
    private javax.swing.JButton jButton_SaveTerminal;
    private javax.swing.JLabel jLabel_ItemForm;
    private javax.swing.JLabel jLabel_StoreID;
    private javax.swing.JLabel jLabel_TerminalID;
    private javax.swing.JTextField jTextField_terminalID;
    private javax.swing.JTextField jTextField_terminalStoreID;
    // End of variables declaration//GEN-END:variables

}
